<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

	<head>
		<script type="text/javascript" src="js/jquery-1.8.0.min.js"></script>

		<link href="images/skin.css" rel="stylesheet" type="text/css" />
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<style type="text/css">
			<!--
			body {
				margin-left: 0px;
				margin-top: 0px;
				margin-right: 0px;
				margin-bottom: 0px;
				background-color: #EEF2FB;
			}
			-->
		</style>
	</head>

	<body>
		<table width="100%" border="0" cellpadding="0" cellspacing="0">
			<tr>
				<td width="17" valign="top" background="images/mail_leftbg.gif">
					<img src="images/left-top-right.gif" width="17" height="29" />
				</td>
				<td valign="top" background="images/content-bg.gif">
					<table width="100%" height="31" border="0" cellpadding="0"
						cellspacing="0" class="left_topbg" id="table2">
						<tr>
							<td height="31">
								<div class="titlebt">
									查看日志
								</div>
							</td>
						</tr>
					</table>
				</td>
				<td width="16" valign="top" background="images/mail_rightbg.gif">
					<img src="images/nav-right-bg.gif" width="16" height="29" />
				</td>
			</tr>
			<tr>
				<td valign="middle" background="images/mail_leftbg.gif">
					&nbsp;
				</td>
				<td valign="top" bgcolor="#F7F8F9">
					<table width="98%" border="0" align="center" cellpadding="0"
						cellspacing="0">
						<tr>
							<td colspan="2" valign="top">
								&nbsp;
							</td>
							<td>
								&nbsp;
							</td>
							<td valign="top">
								&nbsp;
							</td>
						</tr>
						<tr>
							<td colspan="2">
								&nbsp;
							</td>
							<td>
								&nbsp;
							</td>
							<td>
								&nbsp;
							</td>
						</tr>
						<table cellpadding="0" cellspacing="0" border="0" width="100%" class="table">
							<tr class="table_header">
								<td valign="middle" align="center">
									日志编号
								</td>
								<td valign="middle" align="center">
									操作人
								</td>
								<td valign="middle" align="center">
									操作时间
								</td>
								<td valign="middle" align="center">
									操作内容
								</td>
							</tr>
							<s:iterator value="list" var="user" status="st">
								<tr class="row${st.index%2+1}">
									<td valign="middle" align="center">
										<s:property value="#user.username" />
									</td>
									<td valign="middle" align="center">
										<s:property value="#user.name" />
									</td>
									<td valign="middle" align="center">
										<s:date name="#user.hiredate" format="yyyy年M月d日" />
									</td>
									<td valign="middle" align="center">
										<s:property value="#user.position" />
									</td>
								</tr>
							</s:iterator>
						</table>
						<p style="padding: 5px; width: 890px; margin-top: 5px; margin-right: 100px; border: 1px solid #eee; text-align: right; background: #ddd;">
							<s:if test="%{userPage.currentPage == 1}">
								&lt;&lt;&nbsp;首页&nbsp;|&nbsp;上一页
							</s:if>
							<s:else>
								<a href="<%=basePath%>/user/adminGetAllUsers?page=1">&lt;&lt;&nbsp;首页</a>
								<a href="<%=basePath%>/user/adminGetAllUsers?page=${userPage.currentPage-1}">&nbsp;|&nbsp;上一页&nbsp;</a>
							</s:else>
				
							<s:if test="%{userPage.currentPage == userPage.pageCount}">
								&nbsp;下一页 &nbsp;|&nbsp;末页 &gt;&gt;
							</s:if>
							<s:else>
								<a href="<%=basePath%>/user/adminGetAllUsers?page=${userPage.currentPage+1}">下一页&nbsp;|</a>
								<a href="<%=basePath%>/user/adminGetAllUsers?page=${userPage.pageCount}">&nbsp;末页&gt;&gt;</a>
							</s:else>
							<strong>第${userPage.currentPage}页 / 共${userPage.pageCount}页</strong>每页${userPage.pageSize }条记录 &nbsp;&nbsp;&nbsp;总共${userPage.rows }条记录
						</p>
						<tr>
							<td width="2%">
								&nbsp;
							</td>
							<td width="51%" class="left_txt">
								<img src="images/icon-mail2.gif" width="16" height="11">
								&nbsp;&nbsp;&nbsp;&nbsp;邮箱：liuyongwade@gmail.com
								&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
								组员：刘勇&nbsp;&nbsp;程曙&nbsp;&nbsp;陈皓&nbsp;&nbsp;席晓明&nbsp;&nbsp;刘广云
								&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;版权所有 侵权必究
							</td>
							<td>
								&nbsp;
							</td>
							<td>
								&nbsp;
							</td>
						</tr>
					</table>
				</td>
				<td background="images/mail_rightbg.gif">
					&nbsp;
				</td>
			</tr>
			<tr>
				<td valign="bottom" background="images/mail_leftbg.gif">
					<img src="images/buttom_left2.gif" width="17" height="17" />
				</td>
				<td background="images/buttom_bgs.gif">
					<img src="images/buttom_bgs.gif" width="17" height="17">
				</td>
				<td valign="bottom" background="images/mail_rightbg.gif">
					<img src="images/buttom_right2.gif" width="16" height="17" />
				</td>
			</tr>
		</table>

	</body>
</html>
